package com.zjt.dao;

import com.zjt.entity.VersionUpdate;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-29
 * Time: AM9:12
 * 版本管理，版升级DAO
 * To change this template use File | Settings | File Templates.
 */
public interface IVersionUpdateDao extends JpaRepository<VersionUpdate,Long> {
    /**
     * 根据平台类型及是否发布，取对像
     * @param versionPlatform
     * @param deplyed
     * @return
     */
    VersionUpdate findByVersionPlatformAndDeplyed(String versionPlatform,Integer deplyed);

    List<VersionUpdate> findByVersionPlatform(String versionPlatform);
}
